//Arnold Baghomian
//homework5
//baghomia.onid@oregonstate.edu
//CS362 assignment 3


#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>


void testFullDeckCount() {
 struct gameState GS;
 struct gameState* G = &GS;
  int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse, 
           sea_hag, tribute, smithy};
  
//  int initializeGame(int numPlayers, int kingdomCards[10], int randomSeed,
//		   struct gameState *state) {

int player = 0;
initializeGame(2, k, 3141, G);
//3141 gives 4 copper in hand, 3 in deck
 

//int fullDeckCount(int player, int card, struct gameState *state) {
    

 if (fullDeckCount(player, copper, G) == 7)
        printf("fullDeckCount(): PASS initial copper\n");
    else
        printf("fullDeckCount(): FAIL initial copper\n");

G->discard[player][G->discardCount[player]] = copper;
G->discardCount[player]++;
G->discard[player][G->discardCount[player]] = copper;
G->discardCount[player]++;
 if (fullDeckCount(player, copper, G) == 9)
        printf("fullDeckCount(): PASS copper with 2 discards\n");
    else
        printf("fullDeckCount(): FAIL copper with 2 discards\n");

}

int main(int argc, char *argv[])
{
    testFullDeckCount();
    return 0;
}
